﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="Lion" namespace="Lion">
  <class name="Lion.JournalEntry" table="JournalEntry" lazy="false" batch-size="10">
    <id name="ID" column="ID" unsaved-value="0">
      <generator class="identity"></generator>
    </id>
    <property name="Description" column="Description" type="String"/>
    <property name="Reference" column="Reference" type="String"/>
    <property name="TransactionID" column="TransactionID" type="String"/>
    <property name="Debit" column="Debit" />
    <property name="Credit" column="Credit" />
    <property name="DOI" column="DOI"/>
    <many-to-one name="Account" class="Lion.Account" column="Account"></many-to-one>
    <many-to-one name="Voucher" class="Lion.Voucher" column="Voucher"></many-to-one>
    <many-to-one name="AccountClass" class="Lion.AccountClass" ></many-to-one>
  </class>
</hibernate-mapping>